package com.soft.javase.day04.polymorphism;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/21
 */
public class Test {
    public static void main(String[] args) {
        CanFly airplane = new Airplane();
        CanFly bird = new Bird();

        makeFly(airplane);
        makeFly(bird);
    }

    public static void makeFly(CanFly canFly){
        canFly.fly();
    }
}
